package data.json;

import com.google.gson.Gson;

import data.Promotion;
import data.Succursale;

public class JsonParserSuccursale extends JsonParser<Succursale>{

	@Override
	public String jsonCreate(Succursale p) {
		Gson gson = new Gson();
		String json = gson.toJson(p); 

		return json;
	}

	@Override
	public Succursale jsonRead(String json) {
		Gson gson = new Gson();
		Succursale s = gson.fromJson(json, Succursale.class); 

		return s;
	}

}
